package com.ronglian.register_mini_program.service.impl;

import com.github.pagehelper.PageHelper;
import com.ronglian.register_mini_program.dao.ActivityTypeMapper;
import com.ronglian.register_mini_program.model.ActivityType;
import com.ronglian.register_mini_program.model.ActivityTypeExample;
import com.ronglian.register_mini_program.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("TypeService")
public class TypeServiceImpl implements TypeService {

    @Autowired
    ActivityTypeMapper typeMapper;


    @Override
    public List<ActivityType> findAllTypeList() {
        List<ActivityType> types = typeMapper.selectByExample(new ActivityTypeExample());
        if (types != null && types.size() > 0) {
            return types;
        }
        return null;
    }
}
